<script setup>
import { getCurrentInstance } from 'vue'

const { proxy } = getCurrentInstance()

function updateMessage() {
  proxy.$emit('updateMessage', 'About component updated the message.')
}
</script>
<template>
  <div class="about">
    <h1>This is an about page</h1>
    <button @click="updateMessage">Update Message</button>
  </div>
</template>

<style>
@media (min-width: 1024px) {
  .about {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
}
</style>
